static DH *get_dh4096(void)
{
    static unsigned char dhp_4096[] = {
        0xC8, 0x31, 0xCA, 0x6A, 0xFC, 0x14, 0x3D, 0x17, 0xE2, 0x56,
        0x7D, 0xEC, 0xB1, 0xB5, 0x64, 0x0A, 0x14, 0x4A, 0xAC, 0xEB,
        0x6A, 0xB5, 0x1C, 0x5A, 0x8C, 0x33, 0x0C, 0x05, 0x4B, 0xD5,
        0x69, 0x0F, 0x45, 0xBE, 0x3E, 0xF3, 0xAD, 0xC4, 0x4B, 0xA5,
        0x4C, 0x9E, 0x42, 0x68, 0x47, 0x9D, 0xAC, 0x2A, 0xB8, 0x10,
        0x66, 0x69, 0x91, 0x2B, 0x6C, 0x08, 0x73, 0x87, 0x5C, 0x54,
        0x09, 0x62, 0xC6, 0xBA, 0x53, 0x8A, 0xF7, 0x4A, 0xDC, 0xEF,
        0xD1, 0x8D, 0x81, 0x89, 0xE3, 0x1D, 0x2E, 0x9D, 0xFE, 0x9E,
        0xC3, 0x93, 0x02, 0x4C, 0xC3, 0xF6, 0xB0, 0x18, 0x5D, 0x6B,
        0xD5, 0x43, 0xC2, 0x0F, 0xE6, 0x0D, 0xC2, 0x51, 0x0A, 0x4B,
        0x5E, 0xFE, 0xC7, 0xF6, 0x2A, 0x5C, 0x89, 0x92, 0xFC, 0x0A,
        0xC6, 0xFE, 0x47, 0x46, 0x45, 0x1D, 0x04, 0xFC, 0xBC, 0xAF,
        0xC2, 0xC7, 0x49, 0x8D, 0x77, 0xC9, 0x21, 0x71, 0xC6, 0x13,
        0x13, 0xA0, 0x18, 0x04, 0x06, 0xA1, 0x40, 0x07, 0xBE, 0xDC,
        0x4B, 0xC6, 0x5A, 0x61, 0xAD, 0x87, 0x0E, 0xEF, 0x22, 0x2E,
        0xCD, 0xEB, 0xAE, 0x86, 0x52, 0x13, 0xB7, 0x1C, 0x8B, 0xCC,
        0x37, 0x1B, 0x05, 0x95, 0xA5, 0x60, 0x96, 0x0A, 0x8D, 0xC9,
        0xA5, 0x91, 0x83, 0x86, 0x28, 0xBE, 0x15, 0xE0, 0xBA, 0xC3,
        0xC2, 0xC1, 0xF1, 0x29, 0xF6, 0x98, 0xF0, 0xC5, 0x72, 0x25,
        0xCD, 0x27, 0x67, 0xC5, 0xF3, 0xCC, 0x55, 0x13, 0x16, 0x45,
        0xD0, 0xD4, 0x15, 0xEE, 0x37, 0x65, 0xE2, 0xCB, 0x7C, 0xFD,
        0xFE, 0x50, 0x73, 0x8A, 0x68, 0xA0, 0x5F, 0xA8, 0x14, 0xC6,
        0x36, 0xCE, 0xF8, 0xEE, 0xC3, 0xB0, 0xDD, 0xAD, 0x1F, 0xEB,
        0x60, 0xBC, 0xB5, 0x75, 0x14, 0x6E, 0x2A, 0xBA, 0x9F, 0x93,
        0x1F, 0xB8, 0x24, 0x7B, 0xBE, 0x8A, 0x7C, 0x2F, 0xCC, 0x82,
        0x2D, 0x47, 0xE8, 0xF5, 0x80, 0x10, 0x31, 0x33, 0x1B, 0xD7,
        0x88, 0x21, 0x6E, 0xCE, 0x69, 0x54, 0xE7, 0xDD, 0x15, 0xA2,
        0x1D, 0xDA, 0xE1, 0x2B, 0x0D, 0xEF, 0x3D, 0x73, 0xBF, 0x9A,
        0x9D, 0xC3, 0x0D, 0x95, 0x9C, 0x7A, 0xD5, 0x79, 0xA6, 0x65,
        0xFF, 0x16, 0xAD, 0x24, 0x87, 0xA7, 0xE8, 0x69, 0x7E, 0xA4,
        0x6F, 0xC2, 0xC6, 0xEF, 0xAE, 0x44, 0xE5, 0x2D, 0x0D, 0xEA,
        0x96, 0x47, 0x91, 0xDA, 0x1F, 0xC4, 0x3D, 0xFA, 0x0B, 0xCA,
        0xE8, 0xC9, 0xEF, 0xBC, 0xB3, 0xED, 0x5B, 0x39, 0x7F, 0x0A,
        0x6F, 0x96, 0x20, 0x6A, 0x86, 0xAE, 0x71, 0x0D, 0x81, 0x2A,
        0x0F, 0x7B, 0xC4, 0x31, 0x5E, 0x79, 0x7D, 0x8E, 0x33, 0x68,
        0xB1, 0x8D, 0x14, 0x04, 0x4C, 0x84, 0x2F, 0xA2, 0xE4, 0xDE,
        0xAA, 0xD0, 0x7D, 0x06, 0xA9, 0xE2, 0x45, 0xD7, 0x3B, 0xAA,
        0xDD, 0xEF, 0x2E, 0x6D, 0xB9, 0x77, 0x91, 0x17, 0x6F, 0x91,
        0xFB, 0xD0, 0x90, 0x75, 0x95, 0xB5, 0xAB, 0xA4, 0x7E, 0x6A,
        0xED, 0x2B, 0xE5, 0x71, 0x3F, 0xED, 0x85, 0x9B, 0x05, 0x21,
        0xA9, 0x93, 0x47, 0x8F, 0x98, 0x82, 0x90, 0x71, 0x96, 0xDC,
        0x35, 0xF4, 0x0A, 0x54, 0x78, 0xE4, 0x33, 0x54, 0x61, 0x16,
        0x1C, 0x6D, 0x49, 0x26, 0x68, 0x4C, 0x1D, 0x45, 0xD1, 0x21,
        0x35, 0x5E, 0xCA, 0x29, 0x2B, 0x14, 0x6F, 0x35, 0xD7, 0xF5,
        0x60, 0xBC, 0x36, 0xE8, 0xA8, 0x8D, 0x34, 0x30, 0x87, 0xB4,
        0x8E, 0x53, 0x27, 0x74, 0x6D, 0x90, 0xFE, 0xD4, 0x85, 0xCD,
        0xB1, 0x12, 0xF2, 0x30, 0x9B, 0xFF, 0xA0, 0x9A, 0x4E, 0x00,
        0xF6, 0x7B, 0xC2, 0xD3, 0x3D, 0x4C, 0x86, 0xB8, 0xA5, 0x53,
        0x38, 0x57, 0x2D, 0x3B, 0xB9, 0xCB, 0xCB, 0x13, 0xA8, 0x8B,
        0x05, 0xFA, 0x53, 0x51, 0xD9, 0x4E, 0xA6, 0x4A, 0x41, 0xC5,
        0xDA, 0x9C, 0x58, 0x8E, 0x73, 0x0D, 0x55, 0x16, 0x47, 0x6D,
        0x26, 0xBB
    };
    static unsigned char dhg_4096[] = {
        0x02
    };
    DH *dh = DH_new();
    BIGNUM *p, *g;

    if (dh == NULL)
        return NULL;
    p = BN_bin2bn(dhp_4096, sizeof(dhp_4096), NULL);
    g = BN_bin2bn(dhg_4096, sizeof(dhg_4096), NULL);
    if (p == NULL || g == NULL
            || !DH_set0_pqg(dh, p, NULL, g)) {
        DH_free(dh);
        BN_free(p);
        BN_free(g);
        return NULL;
    }
    return dh;
}
-----BEGIN DH PARAMETERS-----
MIICCAKCAgEAyDHKavwUPRfiVn3ssbVkChRKrOtqtRxajDMMBUvVaQ9Fvj7zrcRL
pUyeQmhHnawquBBmaZErbAhzh1xUCWLGulOK90rc79GNgYnjHS6d/p7DkwJMw/aw
GF1r1UPCD+YNwlEKS17+x/YqXImS/ArG/kdGRR0E/LyvwsdJjXfJIXHGExOgGAQG
oUAHvtxLxlphrYcO7yIuzeuuhlITtxyLzDcbBZWlYJYKjcmlkYOGKL4V4LrDwsHx
KfaY8MVyJc0nZ8XzzFUTFkXQ1BXuN2Xiy3z9/lBzimigX6gUxjbO+O7DsN2tH+tg
vLV1FG4qup+TH7gke76KfC/Mgi1H6PWAEDEzG9eIIW7OaVTn3RWiHdrhKw3vPXO/
mp3DDZWcetV5pmX/Fq0kh6foaX6kb8LG765E5S0N6pZHkdofxD36C8roye+8s+1b
OX8Kb5YgaoaucQ2BKg97xDFeeX2OM2ixjRQETIQvouTeqtB9BqniRdc7qt3vLm25
d5EXb5H70JB1lbWrpH5q7SvlcT/thZsFIamTR4+YgpBxltw19ApUeOQzVGEWHG1J
JmhMHUXRITVeyikrFG811/VgvDboqI00MIe0jlMndG2Q/tSFzbES8jCb/6CaTgD2
e8LTPUyGuKVTOFctO7nLyxOoiwX6U1HZTqZKQcXanFiOcw1VFkdtJrsCAQI=
-----END DH PARAMETERS-----
